package com.lori.netshop.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
/**
 * 登录注册页面的跳转
 * @author Administrator
 *
 */
@Controller
@RequestMapping("/UI")
public class PageController {
	/**
	 * 跳转到注册页面
	 * @return
	 */
	@RequestMapping("/register")
	public String registerUI(){
		return "register";
	}
	/**
	 * 跳转到登录页面
	 */
	@RequestMapping("/showLogin")
	public String showLogin(String redirectUrl,Model model){
		model.addAttribute("redirect", redirectUrl);
		return "login";
	}
	
}

